/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Oral Tablet Member3</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see org.hl7.v3.V3Package#getOralTabletMember3()
 * @model extendedMetaData="name='OralTablet_._member_._3'"
 * @generated
 */
public enum OralTabletMember3 implements Enumerator {
	/**
	 * The '<em><b>ORTAB</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #ORTAB_VALUE
	 * @generated
	 * @ordered
	 */
	ORTAB(0, "ORTAB", "ORTAB"),

	/**
	 * The '<em><b>CAPLET</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #CAPLET_VALUE
	 * @generated
	 * @ordered
	 */
	CAPLET(1, "CAPLET", "CAPLET"),

	/**
	 * The '<em><b>CHEWTAB</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #CHEWTAB_VALUE
	 * @generated
	 * @ordered
	 */
	CHEWTAB(2, "CHEWTAB", "CHEWTAB"),

	/**
	 * The '<em><b>CPTAB</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #CPTAB_VALUE
	 * @generated
	 * @ordered
	 */
	CPTAB(3, "CPTAB", "CPTAB"),

	/**
	 * The '<em><b>DRTAB</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #DRTAB_VALUE
	 * @generated
	 * @ordered
	 */
	DRTAB(4, "DRTAB", "DRTAB"),

	/**
	 * The '<em><b>DISINTAB</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #DISINTAB_VALUE
	 * @generated
	 * @ordered
	 */
	DISINTAB(5, "DISINTAB", "DISINTAB"),

	/**
	 * The '<em><b>ORTROCHE</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #ORTROCHE_VALUE
	 * @generated
	 * @ordered
	 */
	ORTROCHE(6, "ORTROCHE", "ORTROCHE"),

	/**
	 * The '<em><b>SLTAB</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #SLTAB_VALUE
	 * @generated
	 * @ordered
	 */
	SLTAB(7, "SLTAB", "SLTAB");

	/**
	 * The '<em><b>ORTAB</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>ORTAB</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #ORTAB
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int ORTAB_VALUE = 0;

	/**
	 * The '<em><b>CAPLET</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>CAPLET</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #CAPLET
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int CAPLET_VALUE = 1;

	/**
	 * The '<em><b>CHEWTAB</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>CHEWTAB</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #CHEWTAB
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int CHEWTAB_VALUE = 2;

	/**
	 * The '<em><b>CPTAB</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>CPTAB</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #CPTAB
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int CPTAB_VALUE = 3;

	/**
	 * The '<em><b>DRTAB</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>DRTAB</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #DRTAB
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int DRTAB_VALUE = 4;

	/**
	 * The '<em><b>DISINTAB</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>DISINTAB</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #DISINTAB
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int DISINTAB_VALUE = 5;

	/**
	 * The '<em><b>ORTROCHE</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>ORTROCHE</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #ORTROCHE
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int ORTROCHE_VALUE = 6;

	/**
	 * The '<em><b>SLTAB</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>SLTAB</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #SLTAB
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int SLTAB_VALUE = 7;

	/**
	 * An array of all the '<em><b>Oral Tablet Member3</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final OralTabletMember3[] VALUES_ARRAY =
		new OralTabletMember3[] {
			ORTAB,
			CAPLET,
			CHEWTAB,
			CPTAB,
			DRTAB,
			DISINTAB,
			ORTROCHE,
			SLTAB,
		};

	/**
	 * A public read-only list of all the '<em><b>Oral Tablet Member3</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<OralTabletMember3> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Oral Tablet Member3</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static OralTabletMember3 get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			OralTabletMember3 result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Oral Tablet Member3</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static OralTabletMember3 getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			OralTabletMember3 result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Oral Tablet Member3</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static OralTabletMember3 get(int value) {
		switch (value) {
			case ORTAB_VALUE: return ORTAB;
			case CAPLET_VALUE: return CAPLET;
			case CHEWTAB_VALUE: return CHEWTAB;
			case CPTAB_VALUE: return CPTAB;
			case DRTAB_VALUE: return DRTAB;
			case DISINTAB_VALUE: return DISINTAB;
			case ORTROCHE_VALUE: return ORTROCHE;
			case SLTAB_VALUE: return SLTAB;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private OralTabletMember3(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //OralTabletMember3
